<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            width: 80vw;
            height: 90vh;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div class="div1"></div>
    <script>
        var div = document.querySelector('.div1');
        // 开始触摸
        div.ontouchstart = function() {
            var e = event;
            console.log(e.touches[0]);
            console.log(e.touches.length);
            var str = '';
            for(var i=0; i<e.touches.length; i++) {
                str += "<p>当前是第"+(i+1)+"个手指，触摸点的坐标是：（"+e.touches[i].clientX+"," +e.touches[i].clientY+")</p>"
            }
            div.innerHTML = str
        }
    </script>
</body>
</html>